{% extends "site_base.html" %}
{% load i18n %}

{% block body %}

<form action="." method="post">
  {% csrf_token %}
  <input type="hidden" name="next" value="{{ next }}" />
  {{ form.non_field_errors }}
  {% for field in form %}
    <div class="field-wrapper">
      <div class="label-wrapper">
        {% if field.name == "username" %}
          {% trans "Email address" %}
        {% else %}
          {{ field.label_tag }}
        {% endif %}
        {% if field.field.required %}<span class="required">*</span>{% endif %}
      </div>
      <div class="value-wrapper">
        {{ field }}
        {{ field.errors }}
      </div>
    </div>
  {% endfor %}
  <div class="submit-wrapper">
    <input type="submit" value={% trans "Sign In" %}>
  </div>
</form>

<br/>
<a href="{% url auth_password_reset %}">{% trans "Forgot password" %}?</a>
<br />
<a href="{% url registration_register %}">{% trans "Not member" %}?</a>
{% endblock %}
